const getServerTime = async(url) => {
    url = url || "http://api.m.taobao.com/res/api3.do?api=mtop.common.getTimestamp";
    const res = await fetch(url);
    const time = +(await res.json()).data.t;
    console.log("服务器时间：", new Date(time).toLocaleDateString() + " " + new Date(time).toLocaleTimeString());
    return time;
};
getServerTime();